﻿<?php
define('IN_QY',true);
session_start();
require("include/common.inc.php");
require('include/functions.php');

if(!$_COOKIE['userid']){
	echo "<script type='text/javascript'>location.href='mlogin.php';</script>";
	exit;
}

$sqlu = "select * from tbl_user where id=".$_COOKIE['userid'];
$queryu=mysql_query($sqlu);
$rowu=mysql_fetch_array($queryu);
$jifen = $rowu['jifen'];
$yuee = $rowu['yuee'];
$xyf = $rowu['xyf'];
$vip = $rowu['vip'];
$sqla = "select count(*) as cc from tbl_spp where userid='".$_COOKIE['username']."'";
$querya=mysql_query($sqla);
$rowa=mysql_fetch_array($querya);
$s = $rowa['cc'];

?>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title><?=$_COOKIE['shuyu']?>/信用分-众晒网</title>
    <link href="/ui/css/Hui.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
     #header{width:100%; position:absolute; top:0;}
     #footer{width:100%; height:55px; position:absolute; bottom:0;}	 
     #main{width:100%; overflow: auto; position:absolute; top:45px;bottom:55px;}

    </style>
    <script src="/ui/js/jquery.min.js"></script>
</head>
<body>
    <header class="H-header H-theme-background-color-white" id="header">
        <span tapmode="" onclick="H.closeWin();" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-10 H-z-index-100"><i class="H-iconfont H-icon-arrow-left H-theme-font-color-black H-font-size-18 H-vertical-middle"></i></span>
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-black H-position-absolute H-width-100-percent H-font-weight-500">信用分</div>
    </header>
    <div id="main">
	 <div class="H-padding-vertical-bottom-10"></div>
        <center>
     <div style="width:95%;height:230px;background:white ">
         <img src="/ui/image/信用分.jpg" width="150px" heigh="150px"/>
         <div>
         <span style="font-size:20px;color:#FF8247">当前信用值<span style="font-size:36px;color:#FF8247"><?php echo $xyf?></span>分</span>
         </div>
         <div>
         <span onclick="H.openWin('xyfmx', 'xyfmx.php');"   style="color:#FF8247">信用记录</span>
         </div>
     </div>
    </center>
	
	<!-------
     <div>
                <?
            $sql="select * from tbl_zhangdan where username='".$_COOKIE['userid']."' ORDER by id DESC LIMIT 1";
            $_id ='&';
            $query=mysql_query($sql);
            while($row=mysql_fetch_array($query)){
            ?>  
    <div class="H-flexbox-horizontal ">
     <div style="width:98%;margin:7px">
        <div class="H-flexbox-horizontal H-border-vertical-bottom-margin-left-10-after" style="background:white;height:30px">
            <span class="H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white H-font-size-16"><?=$row['title']?></span>
             <div style="position:absolute;right:20px">
             <span><?=$row['shijian']?></span>
             </div>
        </div>
            <span class="H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white H-font-size-16"><?=$row['time']?></span>              
    </div>
    </div>
        <?php } ?>    
    </div>
	  <center>
        <span onclick="H.openWin('xyfguize', 'xyfguize.php');" style="color:#4F94CD">信用分规则解读</span>
    </center>

	------>
  



    </div>

     <!--################################底部开始################################-->  	
    <?include('footer.php');?>
     <!--################################底部结束################################-->
    <script src="/ui/script/H.js" type="text/javascript"></script>
    <script>
        $(function() {  
  
    var tel = $('#tel').html();  
  
    var mtel = tel.substr(0, 3) + '****' + tel.substr(7);  
    $('#tel').text(mtel); 
   /* var tel = $('#tel').html();
    alert(tel);
    var mtel=tel.split('');
    var mmtel=mtel.splice(3,4,"****");
    var mmmtel=mtel.join('');
    alert("mtel:"+mtel);
    alert("mmtel:"+mmtel);
    alert("mmmtel:"+mmmtel);
     $('#tel').text(mmmtel);*/
}); 
    </script>
</body>
</html>